﻿
@{
    ViewData["Title"] = "AddSales";
    Layout = "~/Views/Shared/Temp.cshtml";
}

<san style="font-size:20px;font-weight:bold;color:dodgerblue">|</san>
<span style="font-size: 17px; font-weight: bold; color: darkgrey ">新增销售订单</span>


<table style="border: solid 1px gainsboro; width: 100%; height: 50px; margin-bottom: 30px; margin-top: 30px ">
    <tr style="height: 50px; margin-left: 20px">
        <td style="font-size:15px;font-weight:bold;color:dimgray">新增销售订单:</td>
    </tr>
</table>
<form class="layui-form layui-row layui-col-space16">
    <div class="layui-col-sm4">
        <div class="layui-form-item">
            <label class="layui-form-label" style="width:110px;">销售单号:</label>
            <div class="layui-input-block">
                <input type="text" id="salesCode" placeholder="可不填写，自动生成" style="width:230px" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width:60px;">单据类型:</label>
            <div class="layui-input-block" style="width:230px">
                <select id="documentType">
                    <option value="">请选择入库类别</option>
                    <option value="1">采购收货入库</option>
                    <option value="2">销售退货入库</option>
                    <option value="3">生产产品入库</option>
                    <option value="4">领用退还入库</option>
                    <option value="5">借货入库</option>
                    <option value="6">借出还入</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item">
            <label class="layui-form-label" style="width:110px;">关联订单号:</label>
            <div class="layui-input-block">
                <input type="text" id="morderNumber" style="width:230px" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width:100px">客户编号:</label>
            <div class="layui-input-block" style="width:250px">
                <select id="clientCode">
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width:100px">客户名称:</label>
            <div class="layui-input-block" style="width:250px">
                <select id="clientName">
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width: 120px">联系人:</label>
            <div class="layui-input-block">
                <input type="text" id="salesName" placeholder="" style="width: 230px" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width: 120px">电话:</label>
            <div class="layui-input-block">
                <input type="text" id="salesPhone" placeholder="" style="width: 230px" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <label class="layui-form-label">收获日:</label>
        <div class="layui-input-inline layui-input-wrap">
            <div class="layui-input-prefix">
                <i class="layui-icon layui-icon-date"></i>
            </div>
            <input type="date" id="shipmentsTime" lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input">
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width: 120px">备注:</label>
            <div class="layui-input-block">
                <input type="text" id="sremark" placeholder="" style="width: 230px" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-sm4">
        <div class="layui-form-item" style="margin-bottom: 0;">
            <label class="layui-form-label" style="width: 120px">制单人:</label>
            <div class="layui-input-block">
                <input type="text" id="makePerson" placeholder="" style="width: 230px" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-sm4" style="margin-bottom:30px">
        <label class="layui-form-label">制单时间:</label>
        <div class="layui-input-inline layui-input-wrap">
            <div class="layui-input-prefix">
                <i class="layui-icon layui-icon-date"></i>
            </div>
            <input type="date" id="salesTime" lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input">
        </div>
    </div>
    <table style="border: solid 1px gainsboro; width: 100%; height: 50px; margin-bottom: 30px">
        <tr style="height: 50px; margin-left: 20px">
            <td style="font-size: 15px; font-weight: bold; color: dimgray">产品信息</td>
            <td style="float:right">
                <button type="button" class="layui-btn layui-btn-primary" lay-on="test-page">新增产品</button>
            </td>
        </tr>
    </table>

    @* 显示选中的产品 *@
    <table class="layui-table" lay-data="{height:315}" id="ID-demo"></table>



    <div class="layui-btn-container" style="text-align:center">
        <button type="button" class="layui-btn" id="addpro">提交</button>
        <button class="layui-btn layui-btn-primary layui-border-green">取消</button>
    </div>
</form>


<script src="~/js/sales/addsales.js"></script>





